package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.dto.AddArticleDto;
import com.sangeng.domain.dto.UpdateArticleDto;
import com.sangeng.domain.entity.Article;
import com.sangeng.domain.vo.ArticleVo;
import com.sangeng.domain.vo.PageVo;

import java.util.List;

public interface ArticleService  extends IService<Article> {
    ResponseResult<String> add(AddArticleDto article);
    ResponseResult<PageVo> getArticleByTitle(Integer pageNum, Integer pageSize, String title, String summary);


    ResponseResult<String> deleteById(List<Long> idList);

    ResponseResult<ArticleVo> getArticleById(Long id);

    ResponseResult<String> updateArticle(UpdateArticleDto articleDto);
}
